package com.dky.satell.mapper;

import com.github.pagehelper.Page;
import com.dky.satell.entity.OfflineFile;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author mqc
 * @since 2021-04-25
 */
@Mapper
public interface OfflineFileMapper extends BaseMapper<OfflineFile> {
    /**
     * 根据资产名称模糊查询
     * @param name
     * @return
     */
    Page<OfflineFile> findFileByFileName(@Param("name") String name);

    /**
     * 根据id查看详情
     * @param id
     * @return
     */
    List<OfflineFile> selectOffLineFileById(@Param("id")Integer id);

    /**
     * 根据文件名查询
     * @param fileName
     * @return
     */
    OfflineFile selectOfflineFileByName(@Param("fileName")String fileName);
}
